<?php

    echo $this->Form->create('Role',array('controller' => 'roles','action' => 'edit')); 

    echo $this->Form->input('name',array(
        'label' => array('text' => 'Name','class' => ''),
        'type' => 'text'
    ));

    echo $this->Form->input('description',array(
        'label' => array('text' => 'Description','class' => ''),
        'type' => 'text'
    ));

    echo $this->element('rights_panel',array('availableRights' => $availableRights));

    echo $this->Form->end('Save');
    echo $this->Form->button('Cancel');
?>